.class Lcom/waiqin365/base/login/bi;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->listView:Lcom/baoyz/swipemenulistview/SwipeMenuListView;
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$3600(Lcom/waiqin365/base/login/LoginMainActivity;)Lcom/baoyz/swipemenulistview/SwipeMenuListView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/baoyz/swipemenulistview/SwipeMenuListView;->getHeaderViewsCount()I

    move-result v0

    sub-int v0, p3, v0

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->adapter:Lcom/waiqin365/lightapp/im/adapter/c;
    invoke-static {v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2500(Lcom/waiqin365/base/login/LoginMainActivity;)Lcom/waiqin365/lightapp/im/adapter/c;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/im/adapter/c;->getCount()I

    move-result v1

    if-lt v0, v1, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    if-nez p3, :cond_2

    iget-object v0, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const-string/jumbo v1, "message_search"

    invoke-static {v0, v1}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const-class v2, Lcom/waiqin365/lightapp/im/activity/ChatHistorySearchActicity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->overridePendingTransition(II)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0

    :cond_2
    :try_start_1
    iget-object v0, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->adapter:Lcom/waiqin365/lightapp/im/adapter/c;
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2500(Lcom/waiqin365/base/login/LoginMainActivity;)Lcom/waiqin365/lightapp/im/adapter/c;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->listView:Lcom/baoyz/swipemenulistview/SwipeMenuListView;
    invoke-static {v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$3600(Lcom/waiqin365/base/login/LoginMainActivity;)Lcom/baoyz/swipemenulistview/SwipeMenuListView;

    move-result-object v1

    invoke-virtual {v1}, Lcom/baoyz/swipemenulistview/SwipeMenuListView;->getHeaderViewsCount()I

    move-result v1

    sub-int v1, p3, v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/im/adapter/c;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/hyphenate/chat/EMConversation;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMConversation;->getUserName()Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, "xiaomishu_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_3

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginMainActivity;->mContext:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/im/activity/XiaomishuActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->overridePendingTransition(II)V

    goto :goto_0

    :cond_3
    const-string/jumbo v2, "daibanrenwu_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_4

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginMainActivity;->mContext:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/im/activity/DaibanrenwuActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_4
    const-string/jumbo v2, "tongzhigonggao_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_6

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v1, "tongzhigonggao_chatid"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v2, v2, Lcom/waiqin365/base/login/LoginMainActivity;->mContext:Landroid/content/Context;

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginMainActivity;->mContext:Landroid/content/Context;

    invoke-static {v1}, Lcom/waiqin365/base/db/imnotice/f;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/imnotice/f;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/imnotice/f;->c(Ljava/lang/String;)Lcom/waiqin365/base/db/imnotice/e;

    move-result-object v1

    const/4 v0, 0x0

    if-eqz v1, :cond_5

    invoke-virtual {v1}, Lcom/waiqin365/base/db/imnotice/e;->e()I

    move-result v0

    :cond_5
    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginMainActivity;->mContext:Landroid/content/Context;

    invoke-static {v1, v0}, Lcom/waiqin365/base/login/d/g;->a(Landroid/content/Context;I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_6
    const-string/jumbo v2, "wq365_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_0

    const-string/jumbo v2, "managerhelp_chatid"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_7

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v1, v1, Lcom/waiqin365/base/login/LoginMainActivity;->mContext:Landroid/content/Context;

    const-class v2, Lcom/waiqin365/lightapp/im/activity/AdminListActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_7
    const-string/jumbo v2, "waiqin365kefu"

    invoke-virtual {v1, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_8

    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const-class v2, Lcom/waiqin365/lightapp/im/activity/CustomServiceChatActivity;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "toChatUsername"

    const-string/jumbo v2, "waiqin365kefu"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "userId"

    const-string/jumbo v2, "waiqin365kefu"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "userName"

    sget-object v2, Lcom/waiqin365/lightapp/im/a;->q:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "pic_url"

    const-string/jumbo v2, ""

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/LoginMainActivity;->startActivity(Landroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    const v1, 0x7f040022

    const v2, 0x7f040021

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/base/login/LoginMainActivity;->overridePendingTransition(II)V

    goto/16 :goto_0

    :cond_8
    iget-object v1, p0, Lcom/waiqin365/base/login/bi;->a:Lcom/waiqin365/base/login/LoginMainActivity;

    # invokes: Lcom/waiqin365/base/login/LoginMainActivity;->toChatActivity(Lcom/hyphenate/chat/EMConversation;)V
    invoke-static {v1, v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$3700(Lcom/waiqin365/base/login/LoginMainActivity;Lcom/hyphenate/chat/EMConversation;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto/16 :goto_0
.end method
